Mollie\WooCommerce\Payment\PaymentService B

Total Complexity 92
Dependencies 18
Dependents 4
Total lines 817
Lines of code 495
Logical lines of code 226
Comment lines 149
Methods 26
Properties 9

Methods 26

Method Rating Maintainability Complexity Lines of code
processAsMollieOrder()
B
36 16 84
processAsMolliePayment()
A
45 11 41
correctSurchargeFee()
A
47 7 38
updateOrderStatus()
A
53 8 23
processPayment()
S
43 5 51
paymentTypeBasedOnProducts()
S
51 5 31
processSubscriptionSwitch()
S
56 4 17
processPaymentForMollie()
S
52 3 29
updatePaymentStatusForDelayedMethods()
S
61 4 12
processValidMandate()
S
56 3 18
paymentTypeBasedOnGateway()
S
63 4 10
needsSubscriptionSwitch()
S
69 4 6
reportPaymentCreationFailure()
S
61 3 11
reportPaymentSuccess()
S
55 2 21
saveSubscriptionMandateData()
S
59 2 14
noValidMandateForSubsSwitchFailure()
S
59 1 16
processInitialOrderStatus()
S
64 1 11
paymentObjectFailure()
S
75 1 4
__construct()
S
64 1 10
subsSwitchCompleted()
S
63 1 10
setGateway()
S
81 1 3
getUserMollieCustomerId()
S
73 1 5
getProcessPaymentRedirect()
S
67 1 9
orderAddFee()
S
66 1 9
removeOrderFee()
S
72 1 6
saveMollieInfo()
S
70 1 6